package com.io;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class Test_3 {
    public static void main(String[] args) throws IOException {
        String pathname="D:\\javacode\\javacode\\J2024_11_17\\m.txt";
        BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(pathname));
        String content="杨欣欣,你那天打电话说的是什么意思呀,是那个意思吗?";

        bufferedWriter.write(content,0,content.length());
        bufferedWriter.newLine();//换行,兼容各系统
        bufferedWriter.write(content,0,content.length());
        bufferedWriter.newLine();

        bufferedWriter.write(content,0,content.length());
        bufferedWriter.newLine();

        bufferedWriter.write(content,0,content.length());

        //关闭
        bufferedWriter.close();
    }
}
